package com.atguigu.auth.feign.fallback;

import com.atguigu.common.exception.BizCodeEnum;
import com.atguigu.common.utils.R;
import com.atguigu.auth.feign.MemberFeignService;
import com.atguigu.common.vo.SocialUser;
import com.atguigu.auth.vo.UserLoginVo;
import com.atguigu.auth.vo.UserRegisterVo;
import org.springframework.stereotype.Service;

/**
 * @author polaris
 * @date 2021/1/21 6:11 下午
 */

@Service
public class MemberFallbackService implements MemberFeignService {
  @Override
  public R register(UserRegisterVo registerVo) {
    return R.error(BizCodeEnum.READ_TIME_OUT_EXCEPTION.getCode(), BizCodeEnum.READ_TIME_OUT_EXCEPTION.getMsg());
  }

  @Override
  public R login(UserLoginVo loginVo) {
    return R.error(BizCodeEnum.READ_TIME_OUT_EXCEPTION.getCode(), BizCodeEnum.READ_TIME_OUT_EXCEPTION.getMsg());
  }

  @Override
  public R oauthlogin(SocialUser socialUser) {
    return R.error(BizCodeEnum.READ_TIME_OUT_EXCEPTION.getCode(), BizCodeEnum.READ_TIME_OUT_EXCEPTION.getMsg());
  }
}
